<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title th:text="${cmsContent.title}"></title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/css/cms/content/preview.css"/>
    <link rel="stylesheet" href="/plugins/font-awesome/css/font-awesome.min.css"/>
</head>

<body>
<div class="container">
    <div class="main container clearfix" th:unless="${cmsContent.title}">
        您要查看的页面不存在
    </div>

    <div class="main container clearfix" th:if="${cmsContent.title}">
        <div class="content_w850">
            <h1 th:text="${cmsContent.title}"></h1>

            <div class="content-inf">
                发布时间：<span th:text="${#dates.format(cmsContent.releaseDate,'yyyy-MM-dd HH:mm:ss')}"></span>&nbsp;&nbsp;
                作者：<span th:text="${cmsContent.author}"></span>&nbsp;&nbsp;
                来源：<span th:text="${cmsContent.origin}"></span>&nbsp;&nbsp;
                浏览次数：<span th:text="${cmsContent.viewCount}"></span>&nbsp;&nbsp;
            </div>

            <div class="content-txt">
                <div th:utext="${cmsContent.content}"></div>
            </div>

            <div th:if="${attachmentList}">
                <div class="attachment-list-tip">附件列表：</div>
                <ul class="attachment-list">
                    <li class="el-upload-list__item" th:each="attachment:${attachmentList}">
                        <a class="attachment-list-item" th:href="${attachment.filePath}">
                            <i class="fa fa-file-text-o" aria-hidden="true"></i>
                            <span  th:text="${attachment.fileName}"></span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
</body>

</html>